import request from '@/router/axios';

export const getList = (params) => {
    return request({
        url: '/api/mes-warehouse/purchase-order/detail',
        method: 'get',
        params: params
    });
};

export const getSheetDetail = (data) => {
    return request({
        url: '/api/mes-warehouse/purchase-order/list/by/purchase/no',
        method: 'post',
        data: data
    });
};

export const checkReceiving = (data) => {
    return request({
        url: '/api/mes-warehouse/receiving/check/before/receiving',
        method: 'post',
        data: data
    });
};

export const receivingSubmit = (data) => {
    return request({
        url: '/api/mes-warehouse/receiving/submit',
        method: 'post',
        data: data
    });
};